package service.impl;

import service.CategoryService;
import ssm.dao.impl.CategoryDaoImpl;
import ssm.pojo.Category;

import java.sql.SQLException;
import java.util.List;

public class CategoryServiceImpl implements CategoryService {
    public List<Category> findAllCategro(){
        try {
            CategoryDaoImpl cd = new CategoryDaoImpl();
            List<Category> allCate = cd.findAllCate();
            if(allCate!=null){
                return allCate;
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }


}
